<?
if($_GET["display"] == "AutoMember") {
	@$query = "select member_id , member_name ";
	@$query .= "from member_tb ";
	//@$query .= "where member_ena = '1' ORDER BY ";
	@$result = Database::query(@$query);
	while(@$arrayOutputResult = Database::fetchArray(@$result))
	{
		$arrayJSON[] = array("id"=>$arrayOutputResult["member_id"], "label"=>$arrayOutputResult["member_name"], "value"=>$arrayOutputResult["member_name"]);
		
	}
	if(is_array($arrayJSON)) echo json_encode($arrayJSON);
}
	

?>